<?php
/**
 * Author: 式神(vashi)
 * email: 289650682@qq.com
 * Date: 2019/03/19 10:18
 * FileName: CollectionNode.php
 */

namespace app\cms\validate;


use think\Validate;

class CollectionNode extends Validate
{
    protected  $rule=[
        'name|采集点名称'=>['require'],
    ];

    protected $message=[
        'name.require' => ':attribute 不能为空！',
    ];

    protected $scene=[
        'create'=>['name'],   //创建验证
        'edit'=>['name'],
    ];
}